project(C++11)

cmake_minimum_required(VERSION 3.0)

set(CMAKE_CXX_FLAGS "$ENV{CXXFLAGS} -rdynamic -O0 -fPIC -ggdb -std=c++11 -Wall -Wno-deprecated -Werror -Wno-unused-function -Wno-builtin-macro-redefined -Wno-deprecated-declarations -Wno-unused-result -fsanitize=address")
set(CMAKE_C_FLAGS "$ENV{CXXFLAGS} -rdynamic -O0 -fPIC -ggdb -std=c11 -Wall -Wno-deprecated -Werror -Wno-unused-function -Wno-builtin-macro-redefined -Wno-deprecated-declarations -Wno-unused-result -fsanitize=address")

include_directories(./)
include_directories(/usr/include)

set(LIBS 
    src/1/1.cpp
    )


add_library(c++11 SHARED ${LIBS})


add_executable(test_1 tests/test_1.cpp)
target_link_libraries(test_1 c++11)


set(EXECUTABLE_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/bin/)
set(LIBRARY_OUTPUT_PATH ${PROJECT_SOURCE_DIR}/lib/)